Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors creating snapshot and stories files due to multi-bytes test names #218

Conversation

nakker1218
Copy link
Contributor

@nakker1218 nakker1218 commented Dec 3, 2024

Issue: #195

What Changed

In test cases containing multi-byte characters, "name too long" errors were occurring even when the file name was under 255 characters.
This issue arises because, on most platforms, the file name size is determined by the number of bytes rather than the number of characters.

To address this, the logic for truncating snapshot IDs and story file names has been updated to use byte size instead of character count.
This change ensures that test cases with multi-byte characters will no longer trigger "name too long" errors as described above.

Related PR: #175

How to test

  • See new tests with multi-bytes names failing before the fix:
  • See all tests pass after the fix

@nakker1218 nakker1218 changed the title Fix truncate long multi-bytes test names Fix errors creating snapshot and stories files due to multi-bytes test names Dec 3, 2024
@nakker1218
Copy link
Contributor Author

nakker1218 commented Dec 3, 2024

I would like to validate the fix by testing it against the results of the failed action.
Could you please run the action?

The fix I plan to apply is in the following commit: nakker1218@6334588.

Hi @tevanoff, If possible, could you provide support with this? If it's difficult, could you point me to the right person to contact?

@katiebayes
Copy link
Contributor

Hello, thank you for contributing! I've pulled your changes into #219 to run the workflow and we're looking good so far.

@katiebayes katiebayes closed this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants